package com.benz.order.util.multithread;

public class ThreadTest {
    public static void main(String[] args) {
        Thread thread1=new Thread(new ThreadTask(),"线程-1-优先级高");
        Thread thread2=new Thread(new ThreadTask(),"线程-2-优先级低");
        thread1.setPriority(Thread.MAX_PRIORITY);
        thread2.setPriority(Thread.MIN_PRIORITY);
        thread1.start();
        thread2.start();
    }
}
